<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
  "use strict"
  let zty={
    name: "张天泳",
    age: 18,
    sex: "男"
  }
  let jsonzty=JSON.stringify(zty);
  console.log(jsonzty);
  let obj=JSON.parse('{"name":"张天泳","age":18,"sex":"男"}')
  console.log(obj);
</script>
</body>
</html>